<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:66:"D:\www\fdc\public/../application/manage\view\article\rollback.html";i:1480680130;s:63:"D:\www\fdc\public/../application/manage\view\public\header.html";i:1490355172;s:63:"D:\www\fdc\public/../application/manage\view\public\footer.html";i:1474280020;}*/ ?>
<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link href="__CSS__/style.css" rel="stylesheet"/>
	<title>管理中心</title>

</head>

<body>
<div id="J_ajax_loading" class="ajax_loading">加载中...</div>

<div class="subnav">
    <div class="content_menu ib_a blue line_x">
        <?php if(!empty($sub_menu) OR !empty($big_menu)): if(!(empty($big_menu) || (($big_menu instanceof \think\Collection || $big_menu instanceof \think\Paginator ) && $big_menu->isEmpty()))): if(isset($normal)): ?>
        <a class="add fb" href="<?php echo $big_menu['iframe']; ?>"><em><?php echo $big_menu['title']; ?></em></a>
        <?php else: ?>
    	<a class="add fb J_showdialog" href="javascript:void(0);" data-uri="<?php echo $big_menu['iframe']; ?>" data-title="<?php echo $big_menu['title']; ?>" data-id="<?php echo $big_menu['id']; ?>" data-width="<?php echo $big_menu['width']; ?>" data-height="<?php echo $big_menu['height']; ?>"><em><?php echo $big_menu['title']; ?></em></a>
        <?php endif; endif; if(!(empty($sub_menu) || (($sub_menu instanceof \think\Collection || $sub_menu instanceof \think\Paginator ) && $sub_menu->isEmpty()))): if(is_array($sub_menu) || $sub_menu instanceof \think\Collection || $sub_menu instanceof \think\Paginator): $key = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($key % 2 );++$key;if($key != 1): ?><span>|</span><?php endif; ?>
        <a href="<?php echo $val['url']; ?>" class="<?php echo $val['class']; ?>"><em><?php echo $val['name']; ?></em></a>
        <?php endforeach; endif; else: echo "" ;endif; endif; endif; ?>
    </div>
</div>

<!--文章列表-->
<div class="pad_lr_10" >
    <form name="searchform" action="<?php echo url('Article/rollBack'); ?>"  method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                <input type="hidden" name="menuid" value="<?php echo $menuid; ?>" />
                发布时间：
                <input type="text" name="time_start" id="time_start" onclick="myCalendar();" readonly class="date" size="12" value="<?php echo $search['time_start']; ?>">
                -
                <input type="text" name="time_end" id="time_end" onclick="myCalendar();" readonly class="date" size="12" value="<?php echo $search['time_end']; ?>">
                 &nbsp;&nbsp;所属分类：
                <select class="J_cate_select mr10" data-pid="0" data-uri="<?php echo url('ArticleCate/ajaxGetchilds'); ?>" data-selected="<?php echo $search['selected_ids']; ?>"></select>
                <input type="hidden" name="cate_id" id="J_cate_id" value="<?php echo $search['cate_id']; ?>" />
                &nbsp;&nbsp;状态:
                <select name="status">
                <option value="">-所有-</option>
                <option value="1" <?php if($search['status'] == '1'): ?>selected="selected"<?php endif; ?>>已审核</option>
                <option value="0" <?php if($search['status'] == '0'): ?>selected="selected"<?php endif; ?>>未审核</option>
                </select>
                &nbsp;&nbsp;关键词 :
                <input name="keyword" type="text" class="input-text" size="25" value="<?php echo $search['keyword']; ?>" />
                <input type="submit" name="search" class="btn" value="搜索" />
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>
    <div class="J_tablelist table_list" data-acturi="<?php echo url('Article/ajaxEdit'); ?>">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left">标题</th>
                <th width="100">所属类别</th>
                <th width=120>发布时间</th>
                <th width=120>删除时间</th>
                <th width=120>发布人</th>
                <th align="60"><span data-tdtype="order_by" data-field="ordid">排序</span></th>
                <th width="40">状态</th>
                <th width="120">操作</th>
            </tr>
        </thead>
        <tbody>
            <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="<?php echo $val['id']; ?>"></td>
                <td align="center"><?php echo $val['id']; ?></td>
                <td align="left"><span data-tdtype="edit" data-field="title" data-id="<?php echo $val['id']; ?>" class="tdedit" style=""><?php echo $val['title']; ?></span><notempty name="val['img']"><span class="attachment_icon J_attachment_icon" file-type="image" file-rel="<?php echo $val['img']; ?>"><img src="__IMG__/image_s.gif" /></span></notempty></td>
                <td align="center"><?php echo $val['articleCate']['name']; ?></td>
                <td align="center"><?php echo date('Y-m-d H:i:s',$val['create_time']); ?></td>
                <td align="center"><?php echo date('Y-m-d H:i:s',$val['delete_time']); ?></td>
                <td align="center"><?php echo $val['editor']; ?></td>
                <td align="center"><span data-tdtype="edit" data-field="ordid" data-id="<?php echo $val['id']; ?>" class="tdedit"><?php echo $val['ordid']; ?></span></td>
                <td align="center"><img data-tdtype="toggle" data-id="<?php echo $val['id']; ?>" data-field="status" data-value="<?php echo $val['status']; ?>" src="__IMG__/toggle_<?php if($val['status'] == 0): ?>disabled<?php else: ?>enabled<?php endif; ?>.gif" /></td>
                <td align="center"><?php echo rights($options,$val['id'],$val['title'],$menuid); ?></td>
            </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="<?php echo url('Article/recovery'); ?>" data-name="id" data-msg="确定要恢复所选记录么?" value="恢复" />
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="<?php echo url('Article/delTure'); ?>" data-name="id" data-msg="确定要删除所选记录么?" value="删除" />
        <div id="pages"><?php echo $pages; ?></div>
    </div>
    </div>
</div>
<script src="__PUBLIC__/js/jquery.min.1.7.2.js"></script>
<script src="__JS__/manage.js"></script>
<script src="__JS__/admin.js"></script>
<script>
//初始化弹窗
(function (d) {
    d['okValue'] = '确定';
    d['cancelValue'] = '取消';
    d['title'] = '标题';
})($.dialog.defaults);
</script>
<script src="__PUBLIC__/js/plugins/formvalidator.js"></script>
<?php if(isset($list_table)): ?>
<script src="__PUBLIC__/js/plugins/listTable.js"></script>
<script>
$(function(){
	$('.J_tablelist').listTable();
});
</script>
<?php endif; ?>
<script src="__PUBLIC__/js/calendar/WdatePicker.js" charset="utf-8"></script>
<script>
$('.J_cate_select').cate_select({top_option:'请选择'});

</script>
</body>
</html>
